import request from '../request.ts'
//获取在线用户
export const getOnlineList = async  (search:Object) => {
    let r:any = await request({
        url: '/monitor/online/list',
        method: 'get',
        loading: true,
        data:search
    })
    return {
        data:r.rows,
        total:r.total
    }
}
//强退
export const logoutUser = async  (tokenId) => {
    let r:any = await request({
        url: '/monitor/online/' + tokenId,
        method: 'DELETE',
        loading: true
    })
    return r
}